package com.yuanlrc.web.controller.tool;

import com.yuanlrc.common.core.controller.BaseController;
import com.yuanlrc.common.core.domain.AjaxResult;
import com.yuanlrc.system.service.IAuthenticationYuanService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@Api("认证接口管理")
@RestController
@RequestMapping("/authentication/auth")
public class AuthenticationController extends BaseController {

    @Autowired
     private IAuthenticationYuanService iAuthenticationYuanService;

    /**
     * swagger 根据订单，手机，机器ID认证
     *
     * @author yuanlrc
     */


    @ApiOperation("订单和手机号认证")
    @GetMapping("/authuser")
    public AjaxResult authuser() {
        String resutl = iAuthenticationYuanService.findyuanlaruciORDER("159093380355842270","15072070092");
        System.out.println(resutl);
        return AjaxResult.success(resutl);
    }

}

@ApiModel("认证实体")
class AuthenticationParam
{
    @ApiModelProperty("验证数据")
    private String  userData;
}
